# coding=utf-8
# 全世界最帅的帅哥
from flask import Flask
from ysgg1_club_wx.config.wx_config import WxConfig
from ysgg1_club_wx.utils.wx_logging import create_logger


def create_app():
    app = Flask(__name__)
    app.config.from_object(WxConfig)

    app.logger = create_logger(app)

    from ysgg1_club_wx.wx_resources import wx_bp
    app.register_blueprint(wx_bp)

    return app
